#ifndef MBAPPWIG_H
#define MBAPPWIG_H

#include <QWidget>
#include "modbuswig.h"
#include "temhiswig.h"

namespace Ui {
class MbappWig;
}

class MbappWig : public QWidget
{
    Q_OBJECT

public:
    explicit MbappWig(QWidget *parent = 0);
    ~MbappWig();

public:
    ModbusWig modin;
    TemHisWig temhisin;


private:
    Ui::MbappWig *ui;
/* 追加到 private slots: 区域（如果没有就新建） */
private slots:
    void stm32DataUpSlot(QByteArray jsonData);
    void on_pushButton_2_clicked();
//    void on_humanButton_clicked(bool checked);
    void dataDownSlot(QString key, QString val);
    void on_humButtonBox_accepted();
    //void dataDownSlot(QString key, QString val);
    void on_humButtonBox_rejected();
    void on_motorbuttonBox_accepted();
    void on_motorbuttonBox_rejected();
    void on_lightbuttonBox_accepted();
    void on_lightbuttonBox_rejected();
    void on_warningbuttonBox_accepted();
    void on_warningbuttonBox_rejected();
 //   void on_pushButton_3_clicked();
    void on_mode0Button_clicked();

    void on_mode1Button_clicked();
    void on_mode2Button_clicked();
    void modeDownslot(int type, int period);
};

#endif // MBAPPWIG_H
